package nl.haemers.loaders.loadItems 
{
	/**
	 * ...
	 * @author Jonathan Haemers
	 */
	public class AbstractLoadItem implements ILoadItem 
	{
		protected var _loaded				:Boolean;
		protected var _id					:int;
		protected var _name					:String;
		protected var _url					:String;
		
		protected var _data					:Object;
		
		public function AbstractLoadItem(id:int, url:String, name:String = "" ) 
		{
			_id = id;
			_name = name;
			_url = url;
		}
		
		/** Public methods **/
		public function addLoadedData(data:Object) : void
		{
			_loaded = true;
			_data = data;
		}
		
		/** Getters & Setters **/
		public function get name() : String
		{
			return _name;
		}
		
		public function get id() : int
		{
			return _id; 
		}
		
		public function get url() : String
		{
			return _url; 
		}
		
		public function get data() : Object
		{
			return _data;
		}
		
		public function get loaded() : Boolean
		{
			return _loaded; 
		}
		/** Protected methods **/
		
		
	}

}